package com.ruoyi.riskAssessment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 风险评估-预警对象 rk_warning
 *
 * @author lth
 * @date 2023-12-15
 */
public class RkWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 风险源台账ID */
    @Excel(name = "风险源台账ID")
    private String riskIdentifyEvaId;

    /** 风险编号 */
    @Excel(name = "风险编号")
    private String riskCode;

    /** 位置编号ID */
    @Excel(name = "位置编号ID")
    private String locationId;

    /** 位置名称 */
    @Excel(name = "位置名称")
    private String locationName;

    /** 危险源描述 */
    @Excel(name = "危险源描述")
    private String riskSourceDesc;

    /** 风险源类型ID */
    @Excel(name = "风险源类型ID")
    private String riskSourceTypeId;

    /** 风险源类型 */
    @Excel(name = "风险源类型")
    private String riskSourceType;

    /** 风险状态ID */
    @Excel(name = "风险状态ID")
    private String riskStatusId;

    /** 风险状态 */
    @Excel(name = "风险状态")
    private String riskStatus;

    /** 可能导致事故 */
    @Excel(name = "可能导致事故")
    private String causeAccident;

    /** 现场控制措施 */
    @Excel(name = "现场控制措施")
    private String siteControlMeasures;

    /** 专业类型ID */
    @Excel(name = "专业类型ID")
    private String professionalTypeId;

    /** 专业类型 */
    @Excel(name = "专业类型")
    private String professionalType;

    /** 计划任务ID */
    @Excel(name = "计划任务ID")
    private String scheduleTaskId;

    /** 计划任务 */
    @Excel(name = "计划任务")
    private String scheduleTask;

    /** 风险评估 */
    @Excel(name = "风险评估")
    private String riskAssessment;

    /** 风险等级ID */
    @Excel(name = "风险等级ID")
    private String riskLevelId;

    /** 风险等级 */
    @Excel(name = "风险等级")
    private String riskLevel;

    /** 部门ID */
    @Excel(name = "部门ID")
    private String orgId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String orgName;

    /** 评估部门类型
0：个人编制，
10：班组修订，
20：区队修订，
30：安全局修订（待上报），
40：安全局修订（初审），
50：安全局修订（复审），
60：专业科室修订，
70：总工签字，
80：矿长签字，
90：修订完成 */
    @Excel(name = "评估部门类型 0：个人编制， 10：班组修订， 20：区队修订， 30：安全局修订", readConverterExp = "待=上报")
    private String assessmentLevel;

    /** 上报状态 */
    @Excel(name = "上报状态")
    private String reportStatusDesc;

    /** 上报人ID */
    @Excel(name = "上报人ID")
    private String reportBy;

    /** 上报人 */
    @Excel(name = "上报人")
    private String reportByName;

    /** 上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportAt;

    /** 上报状态，默认0未上报，1已上报 */
    @Excel(name = "上报状态，默认0未上报，1已上报")
    private String reportStatus;

    /** 汇总状态 */
    @Excel(name = "汇总状态")
    private String summaryStatus;

    /** 专业修订分配状态（安全局修订操作），默认0：未修订，1：已修订 */
    @Excel(name = "专业修订分配状态", readConverterExp = "安=全局修订操作")
    private String distributeStatus;

    /** 专业科室ID */
    @Excel(name = "专业科室ID")
    private String professionalDepartId;

    /** 预警状态(1:变更预警；2:风险预警) */
    @Excel(name = "预警状态(1:变更预警；2:风险预警)")
    private Long warningStatus;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningAt;

    /** 变更确认状态(1:确认；2:取消) */
    @Excel(name = "变更确认状态(1:确认；2:取消)")
    private Long confirmStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateByName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 排序 */
    @Excel(name = "排序")
    private Long sorting;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)； */
    @Excel(name = "状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；")
    private Long status;

    /** 前风险评估 */
    @Excel(name = "前风险评估")
    private String oldRiskAssessment;

    /** 前风险等级ID */
    @Excel(name = "前风险等级ID")
    private String oldRiskLevelId;

    /** 前风险等级 */
    @Excel(name = "前风险等级")
    private String oldRiskLevel;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRiskIdentifyEvaId(String riskIdentifyEvaId)
    {
        this.riskIdentifyEvaId = riskIdentifyEvaId;
    }

    public String getRiskIdentifyEvaId()
    {
        return riskIdentifyEvaId;
    }
    public void setRiskCode(String riskCode)
    {
        this.riskCode = riskCode;
    }

    public String getRiskCode()
    {
        return riskCode;
    }
    public void setLocationId(String locationId)
    {
        this.locationId = locationId;
    }

    public String getLocationId()
    {
        return locationId;
    }
    public void setLocationName(String locationName)
    {
        this.locationName = locationName;
    }

    public String getLocationName()
    {
        return locationName;
    }
    public void setRiskSourceDesc(String riskSourceDesc)
    {
        this.riskSourceDesc = riskSourceDesc;
    }

    public String getRiskSourceDesc()
    {
        return riskSourceDesc;
    }
    public void setRiskSourceTypeId(String riskSourceTypeId)
    {
        this.riskSourceTypeId = riskSourceTypeId;
    }

    public String getRiskSourceTypeId()
    {
        return riskSourceTypeId;
    }
    public void setRiskSourceType(String riskSourceType)
    {
        this.riskSourceType = riskSourceType;
    }

    public String getRiskSourceType()
    {
        return riskSourceType;
    }
    public void setRiskStatusId(String riskStatusId)
    {
        this.riskStatusId = riskStatusId;
    }

    public String getRiskStatusId()
    {
        return riskStatusId;
    }
    public void setRiskStatus(String riskStatus)
    {
        this.riskStatus = riskStatus;
    }

    public String getRiskStatus()
    {
        return riskStatus;
    }
    public void setCauseAccident(String causeAccident)
    {
        this.causeAccident = causeAccident;
    }

    public String getCauseAccident()
    {
        return causeAccident;
    }
    public void setSiteControlMeasures(String siteControlMeasures)
    {
        this.siteControlMeasures = siteControlMeasures;
    }

    public String getSiteControlMeasures()
    {
        return siteControlMeasures;
    }
    public void setProfessionalTypeId(String professionalTypeId)
    {
        this.professionalTypeId = professionalTypeId;
    }

    public String getProfessionalTypeId()
    {
        return professionalTypeId;
    }
    public void setProfessionalType(String professionalType)
    {
        this.professionalType = professionalType;
    }

    public String getProfessionalType()
    {
        return professionalType;
    }
    public void setScheduleTaskId(String scheduleTaskId)
    {
        this.scheduleTaskId = scheduleTaskId;
    }

    public String getScheduleTaskId()
    {
        return scheduleTaskId;
    }
    public void setScheduleTask(String scheduleTask)
    {
        this.scheduleTask = scheduleTask;
    }

    public String getScheduleTask()
    {
        return scheduleTask;
    }
    public void setRiskAssessment(String riskAssessment)
    {
        this.riskAssessment = riskAssessment;
    }

    public String getRiskAssessment()
    {
        return riskAssessment;
    }
    public void setRiskLevelId(String riskLevelId)
    {
        this.riskLevelId = riskLevelId;
    }

    public String getRiskLevelId()
    {
        return riskLevelId;
    }
    public void setRiskLevel(String riskLevel)
    {
        this.riskLevel = riskLevel;
    }

    public String getRiskLevel()
    {
        return riskLevel;
    }
    public void setOrgId(String orgId)
    {
        this.orgId = orgId;
    }

    public String getOrgId()
    {
        return orgId;
    }
    public void setOrgName(String orgName)
    {
        this.orgName = orgName;
    }

    public String getOrgName()
    {
        return orgName;
    }
    public void setAssessmentLevel(String assessmentLevel)
    {
        this.assessmentLevel = assessmentLevel;
    }

    public String getAssessmentLevel()
    {
        return assessmentLevel;
    }
    public void setReportStatusDesc(String reportStatusDesc)
    {
        this.reportStatusDesc = reportStatusDesc;
    }

    public String getReportStatusDesc()
    {
        return reportStatusDesc;
    }
    public void setReportBy(String reportBy)
    {
        this.reportBy = reportBy;
    }

    public String getReportBy()
    {
        return reportBy;
    }
    public void setReportByName(String reportByName)
    {
        this.reportByName = reportByName;
    }

    public String getReportByName()
    {
        return reportByName;
    }
    public void setReportAt(Date reportAt)
    {
        this.reportAt = reportAt;
    }

    public Date getReportAt()
    {
        return reportAt;
    }
    public void setReportStatus(String reportStatus)
    {
        this.reportStatus = reportStatus;
    }

    public String getReportStatus()
    {
        return reportStatus;
    }
    public void setSummaryStatus(String summaryStatus)
    {
        this.summaryStatus = summaryStatus;
    }

    public String getSummaryStatus()
    {
        return summaryStatus;
    }
    public void setDistributeStatus(String distributeStatus)
    {
        this.distributeStatus = distributeStatus;
    }

    public String getDistributeStatus()
    {
        return distributeStatus;
    }
    public void setProfessionalDepartId(String professionalDepartId)
    {
        this.professionalDepartId = professionalDepartId;
    }

    public String getProfessionalDepartId()
    {
        return professionalDepartId;
    }
    public void setWarningStatus(Long warningStatus)
    {
        this.warningStatus = warningStatus;
    }

    public Long getWarningStatus()
    {
        return warningStatus;
    }
    public void setWarningAt(Date warningAt)
    {
        this.warningAt = warningAt;
    }

    public Date getWarningAt()
    {
        return warningAt;
    }
    public void setConfirmStatus(Long confirmStatus)
    {
        this.confirmStatus = confirmStatus;
    }

    public Long getConfirmStatus()
    {
        return confirmStatus;
    }
    public void setCreateByName(String createByName)
    {
        this.createByName = createByName;
    }

    public String getCreateByName()
    {
        return createByName;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName)
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName()
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setSorting(Long sorting)
    {
        this.sorting = sorting;
    }

    public Long getSorting()
    {
        return sorting;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setOldRiskAssessment(String oldRiskAssessment)
    {
        this.oldRiskAssessment = oldRiskAssessment;
    }

    public String getOldRiskAssessment()
    {
        return oldRiskAssessment;
    }
    public void setOldRiskLevelId(String oldRiskLevelId)
    {
        this.oldRiskLevelId = oldRiskLevelId;
    }

    public String getOldRiskLevelId()
    {
        return oldRiskLevelId;
    }
    public void setOldRiskLevel(String oldRiskLevel)
    {
        this.oldRiskLevel = oldRiskLevel;
    }

    public String getOldRiskLevel()
    {
        return oldRiskLevel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("riskIdentifyEvaId", getRiskIdentifyEvaId())
            .append("riskCode", getRiskCode())
            .append("locationId", getLocationId())
            .append("locationName", getLocationName())
            .append("riskSourceDesc", getRiskSourceDesc())
            .append("riskSourceTypeId", getRiskSourceTypeId())
            .append("riskSourceType", getRiskSourceType())
            .append("riskStatusId", getRiskStatusId())
            .append("riskStatus", getRiskStatus())
            .append("causeAccident", getCauseAccident())
            .append("siteControlMeasures", getSiteControlMeasures())
            .append("professionalTypeId", getProfessionalTypeId())
            .append("professionalType", getProfessionalType())
            .append("scheduleTaskId", getScheduleTaskId())
            .append("scheduleTask", getScheduleTask())
            .append("riskAssessment", getRiskAssessment())
            .append("riskLevelId", getRiskLevelId())
            .append("riskLevel", getRiskLevel())
            .append("orgId", getOrgId())
            .append("orgName", getOrgName())
            .append("assessmentLevel", getAssessmentLevel())
            .append("reportStatusDesc", getReportStatusDesc())
            .append("reportBy", getReportBy())
            .append("reportByName", getReportByName())
            .append("reportAt", getReportAt())
            .append("reportStatus", getReportStatus())
            .append("summaryStatus", getSummaryStatus())
            .append("distributeStatus", getDistributeStatus())
            .append("professionalDepartId", getProfessionalDepartId())
            .append("warningStatus", getWarningStatus())
            .append("warningAt", getWarningAt())
            .append("confirmStatus", getConfirmStatus())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("sorting", getSorting())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("oldRiskAssessment", getOldRiskAssessment())
            .append("oldRiskLevelId", getOldRiskLevelId())
            .append("oldRiskLevel", getOldRiskLevel())
            .toString();
    }
}
